<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>validatorDemo.html</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<script type="text/javascript" src="F:\jquery-validate\js\jquery.js"></script>
		<script type="text/javascript" src="F:\jquery-validate\js\jquery.metadata.js"></script>
		<script type="text/javascript" src="F:\jquery-validate\js\jquery.validate.js"></script>
		
	</head>

	<body>
		<form id="signupForm" method="get" action="" onsubmit="validate();">
			<p>
				<label for="firstname">
					Firstname
				</label>
				<input id="firstname" name="firstname" class="required" />
			</p>
			<p>
				<label for="email">
					E-Mail
				</label>
				<input id="email" name="email" class="required email" />
			</p>
			<p>
				<label for="password">
					Password
				</label>
				<input id="password" name="password" type="password"
					class="{required:true,minlength:5}" />
			</p>
			<p>
				<label for="confirm_password">
					确认密码
				</label>
				<input id="confirm_password" name="confirm_password" type="password"
					class="{required:true,minlength:5,equalTo:'#password'}" />
			</p>
			<p>
				<input class="submit" type="submit" value="Submit" />
			</p>
		</form>
	</body>
</html>
